import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/blacklistCar/list',
    method: 'post',
    data: query
  })
}

export function deleteBlacklistCar(id) {
  return request({
    url: '/blacklistCar/deleteBlacklistCar/' + id,
    method: 'post',
  })
}

export function createBlacklistCar(query) {
  return request({
    url: '/blacklistCar/createBlacklistCar',
    method: 'post',
    data: query
  })
}

export function updateBlacklistCar(query) {
  return request({
    url: '/blacklistCar/updateBlacklistCar',
    method: 'post',
    data: query
  })
}
